---
--类名: AniPlayEvent.lua
--创建日期: 2015-6-4
--创建人: 陈小虎
--功能描述: 动画播放事件
--修改内容：
--修改日期:   
--修改人:     
--修改备注: 
--

local Event = import(".Event")

local AniPlayEvent = class("AniPlayEvent",function()
    return Event.new()
end)

function AniPlayEvent:ctor(params)
	self:setEventName(params.event)

	self.mAddLine = params.line or 2
	self.mAniId = params.aid
	self.mNextImmediately = params.nextI
	self.mAniDirectory = params.directory
	self.mArmatureName = params.name
	self.mPlayAction = params.action
	self.mx = params.x
	self.my = params.y
	self.mPosAtNpcId = params.posAtNpc
	self.mScale = params.scale and math.floor(tonumber(params.scale)) / 100 or 1.0
	self.mZOrder = params.zOrder or 0
	self.mKeepTime = params.keepTime or 0

	self.mShowType = params.showType
	self.mFadeTime = params.fadeTime
	self.mDelete = params.delete
	self.mPreType = (params.preType and tonumber(params.preType) == 2) and true or false
end

return AniPlayEvent